#ifndef __ELE_LOCK_CTRL_H__
#define __ELE_LOCK_CTRL_H__

#include "cmsis_os2.h"
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"

#include "pin.h"
#include "drv_gpio.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief 电子锁超时时间5S
 */
#define ELE_LOCK_TIMEOUT        5000

#define ELE_LOCK_P_PIN      GET_PIN(E, 13) 
#define ELE_LOCK_N_PIN      GET_PIN(E, 14)
#define ELE_LOCK_DET_PIN_1  GET_PIN(F, 13)
#define ELE_LOCK_DET_PIN_2  GET_PIN(H, 7)

int ele_lock_open(void);
int ele_lock_close(void);
#ifdef __cplusplus
}
#endif

#endif  /* __ELE_LOCK_CTRL_H__ */


